using System.ComponentModel.DataAnnotations;

namespace MyHomeworkWebAPi.Models
{
    public class LoginModel
    {
        [Required(ErrorMessage = "学号不能为空")]
        public string StudentId { get; set; } = string.Empty;

        [Required(ErrorMessage = "密码不能为空")]
        public string Password { get; set; } = string.Empty;
    }
} 